package com.boot.study.demo.controller;

import org.springframework.stereotype.Service;

/**
 * @author liwei
 * @date 2022/3/15
 **/
@Service
public class DemoService {

    public DemoResponse demo01(DemoRequest demoRequest){
        DemoResponse demoResponse = new DemoResponse();
        demoResponse.setName(demoRequest.getName());
        return demoResponse;
    }

    public DemoResponse demo02(String name){
        DemoResponse demoResponse = new DemoResponse();
        demoResponse.setName(name);
        return demoResponse;
    }
}
